package com.yeyks.hotel.dal.dao;

import com.yeyks.hotel.dal.domain.RoomCalendarInfo;
import com.yeyks.hotel.dal.domain.RoomCalendarVipInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * <p>
 * 房间日历信息表 Mapper 接口
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
public interface RoomCalendarVipInfoMapper extends BaseMapper<RoomCalendarVipInfo> {

    int updateRoomCalendarStatus(@Param("roomId") Integer roomId, @Param("status")Integer status);

    int updateRoomCalendarPrice(@Param("roomId") Integer roomId, @Param("purcPrice")Integer purcPrice,@Param("salePrice")Integer salePrice);

    /**
     * 批量添加房间日历信息
     * @param calendarInfoList 日历信息
     * @return 返回结果
     */
    int insertBatchCalendar(@Param("list") List<RoomCalendarVipInfo> calendarInfoList);

    List<RoomCalendarVipInfo> selectForCreateRoomCalendarInfoDo(@Param("idList") List<Integer> idList, @Param("date") Date date);

    /**
     * 批量更新vip房态日历信息
     * @param updateCalendarInfoList 信息集合
     * @return 返回影响行数
     */
    int updateBatchCalendar(@Param("list") List<RoomCalendarVipInfo> updateCalendarInfoList);
}
